Class TopicConfig
Topic-specific configuration.
Inheritance
System.Object
TopicConfig
Namespace:RdKafka
Assembly:cs.temp.dll.dll
Syntax
public class TopicConfig
Constructors
TopicConfig()
Declaration
public TopicConfig()
Properties
CustomPartitioner
Sets a custom TopicConfig.Partitioner delegate to control assignment of messages to partitions.
See Produce(Byte[], Byte[], Int32) for details.
Declaration
public TopicConfig.Partitioner CustomPartitioner { get; set; }
Returns
Type | Description |
---|---|
TopicConfig.Partitioner |
Item[String]
Get or set a configuration value directly.
See
Declaration
public string this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The configuration property name. |
Returns
Type | Description |
---|---|
System.String | The configuration property value. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | value is invalid. |
System.InvalidOperationException | Configuration property name does not exist. |
Methods
Dump()
Dump all configuration names and values into a dictionary.
Declaration
public Dictionary<string, string> Dump()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |